package com.zhaosc.parse;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zhaosc.test.UserService;

public class Test {
    
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext(
                "mytest.xml");
                System.out.println(app);
        UserService userService = app.getBean(UserService.class);
        userService.eat("wokao");
    }
}
